/**
 * <p><b>Title:</b> AssistFilter.java </p>
 * @Package com.wondertek.oes.charge.service.manager.rule.filter
 */
package com.wondertek.poms.core.filter.impl;

import com.wondertek.poms.core.filter.BaseRuleFilter;
import com.wondertek.poms.core.filter.RuleFilterChain;
import com.wondertek.poms.dao.po.Content;
import com.wondertek.poms.dao.po.IRulePo;
import com.wondertek.poms.dao.po.PrdInfoRule;


/**
 * <p><b>AssistFilter Description:</b> 辅助分类过滤器</p>
 * @author douzi
 * <b>DATE</b> 2019年8月30日 下午3:45:38
 */
public class AssistFilter extends BaseRuleFilter {

	@Override
	public void doFilter(IRulePo rule, Content c, RuleFilterChain chain) {
		if (rule instanceof PrdInfoRule) {
			PrdInfoRule r = (PrdInfoRule) rule;
			this.specialFilter(r.getPrdRuleId(),
					r.getAssist(),
					c.getAssist(),
					chain,
					"辅助分类-Assist");
		}
		chain.doFilter(rule, c, chain);
	}

}
